package com.ericsson.rm.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
/*@NamedQueries({
    @NamedQuery(name="EmpDetail.insertResource",
                query="insert into EmpDetail E values E.empID=:empID, E.empfirstname=:empfirstname,E.emplastname=emplastname,"
                		+ "E.signum=:signum, E.dateOfJoin=:dateOfJoin, E.yearsOfExp=:yearsOfExp, E.ericExp=:ericExp, E.lineManager=:lineManager"
                		+ "E.phNum=:phNum, E.emailID=:emailID, E.jobStage=:jobStage")    
})*/ 
@NamedQueries({
	@NamedQuery(name="EmpDetail.searchEmployee",
				query="select e from EmpDetail e where e.empID=:empID")
})
@Table(name="RP_RESOURCE_DETAIL")
public class EmpDetail implements Serializable{

	private static final long serialverionUID = 1L;
	
	@Id
//	@SequenceGenerator(name="USER_GSC1.seq_resource",sequenceName="seq_resource")
//	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="USER_GSC1.seq_resource")
	@Column(name="RESOURCE_ID")
	private String empID;
	
	@Column(name="FIRST_NAME")
	private String empfirstname;
	
	@Column(name="LAST_NAME")
	private String emplastname;
	
	@Column(name="SIGNUM")
	private String signum;
	
	@Column(name="DATE_OF_JOINING")
	private String dateOfJoin;
	
	@Column(name="CAREER_START_DATE")
	private String yearsOfExp;
	
	/*@Column(name="ERICSSON_EXP_IN_YEARS")
	private String ericExp;*/

	@Column(name="LINE_MANAGER_SIGNUM")
	private String lineManager;
	
	@Column(name="PHONE_NO")
	private String phNum;
	
	@Column(name="EMAIL_ID")
	private String emailID;
	
	@Column(name="JOB_STAGE")
	private String jobStage;
	
	
	
	
	public String getEmpfirstname() {
		return empfirstname;
	}

	public void setEmpfirstname(String empfirstname) {
		this.empfirstname = empfirstname;
	}

	public String getEmplastname() {
		return emplastname;
	}

	public void setEmplastname(String emplastname) {
		this.emplastname = emplastname;
	}

	public String getLineManager() {
		return lineManager;
	}

	public void setLineManager(String lineManager) {
		this.lineManager = lineManager;
	}

	public String getPhNum() {
		return phNum;
	}

	public void setPhNum(String phNum) {
		this.phNum = phNum;
	}

	public String getEmailID() {
		return emailID;
	}

	public void setEmailID(String emailID) {
		this.emailID = emailID;
	}

	public String getJobStage() {
		return jobStage;
	}

	public void setJobStage(String jobStage) {
		this.jobStage = jobStage;
	}

	public String getEmpID() {
		return empID;
	}

	public void setEmpID(String empID) {
		this.empID = empID;
	}


	public String getSignum() {
		return signum;
	}

	public void setSignum(String signum) {
		this.signum = signum;
	}

	public String getDateOfJoin() {
		return dateOfJoin;
	}

	public void setDateOfJoin(String dateOfJoin) {
		this.dateOfJoin = dateOfJoin;
	}

	public String getYearsOfExp() {
		return yearsOfExp;
	}

	public void setYearsOfExp(String yearsOfExp) {
		this.yearsOfExp = yearsOfExp;
	}

	/*public String getEricExp() {
		return ericExp;
	}

	public void setEricExp(String ericExp) {
		this.ericExp = ericExp;
	}
	*/
	
}
